package com.example.user.service.application.service;

import com.example.user.service.application.port.in.GetUserListUseCase;
import com.example.user.service.domain.User;
import com.example.user.service.domain.port.GetUserListPort;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GetUserListService implements GetUserListUseCase {

    @Resource
    GetUserListPort getUserListPort;
    @Override
    public List<User> getUsers() {
        List<User> users = User.getUsers(getUserListPort);
        return users;
    }
}
